package com.weixiaodong.ModelDesign.生成实例.AbastractFactory模式.SimpleFactory;

public class SimpleMouseFactory {

    public static Mouse newMouse(int i) {
        switch (i) {
            case 1:
                return new DellMouse();
            case 2:
                return new HpMouse();
            default:
                return null;
        }
    }

}
